<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:t="http://myfaces.apache.org/tomahawk">

<div align="center"><ui:composition
	template="../../templates/template.xhtml">

	<ui:define name="title">
	 	Edit Case Participants Page
	</ui:define>
	<ui:param name="page" value="home" />
	<ui:define name="header">
		<ui:include src="../../header.xhtml" />
	</ui:define>

	<ui:define name="menu">
		<h:form id="menu1">

			<div align="center"><br />
			<br />
			<h:commandButton value="Back"
				action="#{adminEditParticipantsPage.back}" styleClass="buttonClass"
				immediate="true" /></div>
		</h:form>
	</ui:define>

	<ui:define name="body">
		<h:form>
			<!-- *************************Case Participants*****************************-->
			<h:outputText value="CASE PARTICIPANTS" styleClass="header" />

			<div class="grouping"><h:outputText
				value="Initiating Party Organization" styleClass="subHeadingClass" />
			<h:panelGroup>
				<h:dataTable width="100%" styleClass="celldata"
					value="#{adminEditParticipantsPage.initiatingPartyOrganizationDataModel}"
					var="initiatingPartyOrganization"
					columnClasses="dataTableColumnClass,dataTableColumnClass">
					<h:column>
						<f:facet name="header">
							<h:outputText value="Name" styleClass="subHeadingTextClass" />
						</f:facet>

						<h:outputText
							value="#{initiatingPartyOrganization.organizations.name}"
							styleClass="textFont75" />
					</h:column>
					<h:column>
						<f:facet name="header">
							<h:outputText value="Address" styleClass="subHeadingTextClass" />
						</f:facet>

						<h:dataTable styleClass="celldata"
							value="#{initiatingPartyOrganization.organizations.addresses}"
							var="addresses">
							<h:column>
								<h:panelGroup>
									<h:outputText value="#{addresses.address.streetFullText}"
										styleClass="textFont75" />
									<h:outputText value=" " />
									<h:outputText value="#{addresses.address.streetExtensionText}"
										styleClass="textFont75" />

									<h:outputText value=" " />
									<h:outputText value="#{addresses.address.cityName}"
										styleClass="textFont75" />

									<h:outputText value=" " />
									<h:outputText value="#{addresses.address.zipCode}"
										styleClass="textFont75" />
								</h:panelGroup>
							</h:column>
						</h:dataTable>
					</h:column>
				</h:dataTable>
			</h:panelGroup></div>
			<!-- ******************************************************************-->
			<div class="grouping"><h:outputText
				value="Initiating Party Person" styleClass="subHeadingClass" /> <h:panelGroup>
				<h:dataTable width="100%" styleClass="celldata"
					value="#{adminEditParticipantsPage.initiatingPartyPersonModel}"
					var="initiatingPartyPerson"
					columnClasses="dataTableColumnClass,dataTableColumnClass">
					<h:column>
						<f:facet name="header">
							<h:outputText value="Name" styleClass="subHeadingTextClass" />
						</f:facet>
						<h:panelGroup>
							<h:outputText value="#{initiatingPartyPerson.person.firstName}"
								styleClass="textFont75" />
							<h:outputText value=" " />
							<h:outputText value="#{initiatingPartyPerson.person.middleName}"
								styleClass="textFont75" />
							<h:outputText value=" " />
							<h:outputText value="#{initiatingPartyPerson.person.lastName}"
								styleClass="textFont75" />
							<h:outputText value=" " />
							<h:outputText value="#{initiatingPartyPerson.person.suffixName}"
								styleClass="textFont75" />
						</h:panelGroup>
					</h:column>
				</h:dataTable>
			</h:panelGroup></div>
			<!-- ****************************Defendent Party Person******************-->
			<div class="grouping"><h:outputText value="Defendant Party"
				styleClass="subHeadingClass" /> <h:panelGroup>
				<h:dataTable width="100%" styleClass="celldata"
					value="#{adminEditParticipantsPage.defendentPartyPersonModel}"
					var="defendentParty"
					columnClasses="dataTableColumnClass,dataTableColumnClass">
					<h:column>
						<f:facet name="header">
							<h:outputText value="Name" styleClass="subHeadingTextClass" />
						</f:facet>
						<h:panelGroup>
							<h:outputText value="#{defendentParty.person.firstName}"
								styleClass="textFont75" />
							<h:outputText value=" " />
							<h:outputText value="#{defendentParty.person.middleName}"
								styleClass="textFont75" />
							<h:outputText value=" " />
							<h:outputText value="#{defendentParty.person.lastName}"
								styleClass="textFont75" />
							<h:outputText value=" " />
							<h:outputText value="#{defendentParty.person.suffixName}"
								styleClass="textFont75" />
						</h:panelGroup>
					</h:column>
					<h:column>
						<f:facet name="header">
							<h:outputText value="Address" styleClass="subHeadingTextClass" />
						</f:facet>
						<h:dataTable width="100%"
							value="#{defendentParty.person.addresses}" var="addresses">
							<h:column>
								<h:panelGroup>
									<h:outputText value="#{addresses.address.streetFullText}"
										styleClass="textFont75" />
									<h:outputText value=" " />
									<h:outputText value="#{addresses.address.streetExtensionText}"
										styleClass="textFont75" />
									<h:outputText value=" " />
									<h:outputText value="#{addresses.address.cityName}"
										styleClass="textFont75" />
									<h:outputText value=" " />
									<h:outputText value="#{addresses.address.zipCode}"
										styleClass="textFont75" />
								</h:panelGroup>
							</h:column>
						</h:dataTable>
					</h:column>
				</h:dataTable>
			</h:panelGroup></div>
			<!-- *****************************Witness************************************* -->
			<div class="grouping"><h:panelGroup>
				<h:outputText value="Witness" styleClass="subHeadingClass" />
			</h:panelGroup> <h:panelGroup>
				<h:dataTable id="DATATABLE_witness" width="100%"
					styleClass="celldata"
					value="#{adminEditParticipantsPage.witnessPersonModel}"
					var="witness"
					columnClasses="dataTableColumnClass,dataTableColumnClass">
					<h:column>
						<f:facet name="header">
							<h:outputText value="Name" styleClass="subHeadingTextClass" />
						</f:facet>
						<h:panelGroup>
							<h:outputText value="#{witness.person.firstName}"
								styleClass="textFont75" />
							<h:outputText value=" " />
							<h:outputText value="#{witness.person.middleName}"
								styleClass="textFont75" />
							<h:outputText value=" " />
							<h:outputText value="#{witness.person.lastName}"
								styleClass="textFont75" />
							<h:outputText value="#{witness.person.suffixName}"
								styleClass="textFont75" />
							<h:outputText value=" " />
						</h:panelGroup>
					</h:column>
					<h:column>
						<f:facet name="header">
							<h:outputText value="Address" styleClass="subHeadingTextClass" />
						</f:facet>
						<h:dataTable value="#{witness.person.addresses}" var="addresses">
							<h:column>
								<h:panelGroup>
									<h:outputText value="#{addresses.address.streetFullText}"
										styleClass="textFont75" />
									<h:outputText value=" " />
									<h:outputText value="#{addresses.address.streetExtensionText}"
										styleClass="textFont75" />
									<h:outputText value=" " />
									<h:outputText value="#{addresses.address.cityName}"
										styleClass="textFont75" />
									<h:outputText value=" " />
									<h:outputText value="#{addresses.address.zipCode}"
										styleClass="textFont75" />
								</h:panelGroup>
							</h:column>
						</h:dataTable>
					</h:column>
				</h:dataTable>
			</h:panelGroup></div>
		</h:form>

		<h:form>
			Add a new person
			<br />
			<br />
			Choose the person's type:
			<h:selectOneMenu value="#{adminEditParticipantsPage.selectedType}">
				<f:selectItems value="#{adminEditParticipantsPage.personTypes}" />
			</h:selectOneMenu>
			<br />
			<br />
			Enter the person's information here:
			<br />
			<br />
			First name:
			<br />
			<h:inputText value="#{adminEditParticipantsPage.firstName}"
				styleClass="textFont75" />
			<br />
			<br />
			Middle name:
			<br />
			<h:inputText value="#{adminEditParticipantsPage.middleName}"
				styleClass="textFont75" />
			<br />
			<br />
			Last name:
			<br />
			<h:inputText value="#{adminEditParticipantsPage.lastName}"
				styleClass="textFont75" />
			<br />
			<br />
			Suffix name:
			<br />
			<h:inputText value="#{adminEditParticipantsPage.suffixName}"
				styleClass="textFont75" />
			<br />
			<br />
			Date of birth:
			<br />
			<t:inputCalendar id="courtDate" monthYearRowClass="yearMonthHeader"
				weekRowClass="weekHeader" currentDayCellClass="currentDayCell"
				value="#{adminEditParticipantsPage.dob}"
				validator="#{adminEditParticipantsPage.validateDate}"
				renderAsPopup="true" renderPopupButtonAsImage="true" />
			<br />
			<br />
			Enter the person's address here:
			<br />
			<br />
			Street Address:
			<br />
			<h:inputText value="#{adminEditParticipantsPage.streetFullText}"
				styleClass="textFont75" />
			<br />
			<br />
			Street Extension:
			<br />
			<h:inputText value="#{adminEditParticipantsPage.streetExtensionText}"
				styleClass="textFont75" />
			<br />
			<br />
			City:
			<br />
			<h:inputText value="#{adminEditParticipantsPage.cityName}"
				styleClass="textFont75" />
			<br />
			<br />
			State:
			<br />
			<h:inputText value="#{adminEditParticipantsPage.state}"
				styleClass="textFont75" />
			<br />
			<br />
			Zip code:
			<br />
			<h:inputText value="#{adminEditParticipantsPage.zipCode}"
				styleClass="textFont75" />
			<br />
			<br />
			<h:commandButton value="Save Changes"
				action="#{adminEditParticipantsPage.save}" styleClass="buttonClass" />
		</h:form>
	</ui:define>
</ui:composition></div>
</html>
